package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.User;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

public interface UserService extends IService<User> {

    R<String> sendMsg(User user, HttpSession httpSession);

    R<User> login(@RequestBody Map map, HttpSession httpSession);

    R<String> loginOut(HttpServletRequest res);
}
